package edu.sctu.xuping.month05.day;

/**
 * Created by Administrator on 2015/5/8.
 */
public class TextTwo {

    int sum;
    public int setNumber(TextOne textone){
        for(int i=0;i<=textone.number;i++){
            sum+=i;
        }
        return  sum;

    }

}
